package design.create.builder;

import lombok.Builder;
import lombok.ToString;

/**
 * @author khaiLoon
 * @date 2018-12-24
 **/
@Builder
@ToString
public class Person {
    private int id;
    private String name;
    //可选参数
    private int age;
    private String sex;
    private String phone;
    private String address;
    private String desc;

    public static void main(String[] args) {
        Person desc = Person.builder().desc("desc").build();
        System.out.println(desc.toString());
    }
}